Quick Start
Get Edison with NPM:
npm install edison
1. What you'll need
- Node.js version 16.14 or above:
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
2. Uploading Standard Firmata to Arduino
- Open Arduino IDE. if you have not install that, install Arduino IDE.
File
>Examples
>Firmata
>StandardFirmata
Tools
>Board
>your board
Tools
>Port
>your port
- Click
Upload
button. if you use WSL, you need to follow this instruction
3. Try LED flashing
index.tsx
import { Board, Button, Led, render } from "edison"
import React from "react"
const App: React.FC = () => {
return (
<Board port={'/dev/tty***'} baudRate={57600}>
<Led pin={13} blink={500} />
</Board>
)
}
render(<App />)
4. execute the program
$ npx vite-node index.tsx
automatically** and displays your changes.